package cn.itcast.tanhua.mytanhuaserver.controller;

import cn.itcast.tanhua.mytanhuaserver.service.CheckService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 陈功炳
 * @since 2021/12/9 11:23
 */
@RestController
@RequestMapping("check")
@Slf4j
public class CheckLetterController {

    @Autowired
    private CheckService checkService;

    @PostMapping("letter")
    public void checkletter(@RequestParam String publishId,@RequestParam String checkResult){
        checkService.check(publishId,checkResult);
    }
}
